﻿package org.wellcometreeoflife.utils {		import flash.display.*;	import flash.geom.Vector3D;	import flash.geom.*;		public class PointerLocate {				// Constants:		// Public Properties:		// Private Properties:			// Initialization:		public function PointerLocate() { }			// Public Methods:		public static function local3DToLocal3DPoint(containerFrom:DisplayObject, containerTo:DisplayObject):Point {			var vector3D:Vector3D = containerFrom.transform.matrix3D.decompose()[0];			var point:Point = new Point()			var matrix:Matrix = new Matrix()			matrix.scale(containerTo.scaleX, containerTo.scaleY)			matrix.translate(containerTo.x, containerTo.y)			point=containerTo.local3DToGlobal(vector3D);			containerTo.transform.matrix3D = null//			containerTo.transform.matrix = matrix			vector3D=containerFrom.globalToLocal3D(point);			point.x = vector3D.x			point.y = vector3D.y			return point;		}		// Protected Methods:	}	}